<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page import="com.diligreat.cache.Cache,java.util.*,com.diligreat.domain.*" %>
<div class="contentDetail" id="service">
	<div class="bar">
		<div class="barWord"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getRefineyourselections() %></div><div class="barSearchOff"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getMore() %></div>
		<form method="post">
		<div class="sbar">
			<div class="top">
				<%
					Lang langc=(Lang)Cache.cache.getLang().get(session.getAttribute("lang").toString());
					List<Selection> fl=langc.getFlist();
					for(int i=0;i<fl.size();i++)
					{
						Selection s=fl.get(i);
						out.println("<div class=\"sub\"><input type=\"checkbox\" value=\""+s.getName()+"\" name=\"vpro\">"+s.getName()+"</div>");
					}
				%>
			</div>
			<div class="top">
				<%
					fl=langc.getClist();
					for(int i=0;i<fl.size();i++)
					{
						Selection s=fl.get(i);
						out.println("<div class=\"sub\"><input type=\"checkbox\" value=\""+s.getName()+"\" name=\"vpro\">"+s.getName()+"</div>");
					}
				%>
			</div>
			<div class="top">
				<%
					fl=langc.getPlist();
					for(int i=0;i<fl.size();i++)
					{
						Selection s=fl.get(i);
						out.println("<div class=\"sub\"><input type=\"checkbox\" value=\""+s.getName()+"\" name=\"vpro\">"+s.getName()+"</div>");
					}
				%>
			</div>
			<div class="top">
				<div class="sub"><input type="checkbox" value="1264953600000" name="vt">2010年</div>
				<div class="sub"><input type="checkbox" value="1296489600000" name="vt">2011年</div>
				<div class="sub"><input type="checkbox" value="1328025600000" name="vt">2012年</div>
				<div class="sub"><input type="checkbox" value="1359648000000" name="vt">2013年</div>
			</div>
			<div class="bot"><input type="submit" value="提交"></div>
		</div>
		</form>
	</div>
	<div class="sContent">
		<div class="sContentTitle">
			<c:if test="${articles==0}">
				<div class="num"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getNoarticle() %></div>
			</c:if>
			<c:if test="${articles!=0}">
				<div class="num"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getGongyouone() %>1-${articles+1}<%=Cache.cache.getEachTitle(session.getAttribute("lang")).getGongyoutwo() %>, <%=Cache.cache.getEachTitle(session.getAttribute("lang")).getGongyouthree() %>${articles}<%=Cache.cache.getEachTitle(session.getAttribute("lang")).getGongyoufour() %></div>
				<div class="page">
					<div class="pageup">
						<c:if test="${page>1}"><a href="?page=${page-1}"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getPrev() %></a></c:if>
						<c:if test="${page==1}"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getPrev() %></c:if>
					</div>
					<div class="pagenum">
						<c:forEach var="i" begin="1" end="${pages}" step="1">
							<c:if test="${page==i}"><div class="pagenumeachon"><c:out value="${i}"/></div></c:if>
							<c:if test="${page!=i}"><div class="pagenumeach"><a href="?page=${i}"><c:out value="${i}"/></a></div></c:if>
						</c:forEach>
					</div>
					<div class="pagedown">
						<c:if test="${page!=pages}"><a href="?page=${page+1}"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getNext() %></a></c:if>
						<c:if test="${page==pages}"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getNext() %></c:if>
					</div>
				</div>
			</c:if>
		</div>
		<c:if test="${not empty articleslist}">
			<c:forEach items="${articleslist}" var="al" varStatus="status">
				<div class="<c:if test="${status.count==1}">sContentEachOn</c:if><c:if test="${status.count!=1}">sContentEach</c:if>">
					<div class="sCon">
						<div class="sConTop">${al.title}</div>
						<div class="sConBot"><div class="sConBotLeft"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getAticle() %></div><div class="sConBotRight"><a href="article.htm?pageid=${al.id}"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getReadnow() %></a></div></div>
						<div class="sInfoSummery">${al.precontent}</div>
						<div class="sInfoPic">${al.pic}</div>
					</div>
				</div>
			</c:forEach>
		</c:if>
	</div>
	<div class="sArticle">
		<c:if test="${not empty articleslist}">
			<c:forEach items="${articleslist}" var="al" begin="0" end="0" varStatus="status">
				<div class="sArticleEach">
					<div class="wordTile">${al.title}</div>
					<div class="wordKey"><div class="keyArticle"><%=Cache.cache.getEachTitle(session.getAttribute("lang")).getAticle() %></div></div>
					<div class="wordImg"><img src="${basePath}images/cover/${al.pic}" width="200px"></div>
					<div class="wordSummery">${al.precontent}</div>
					<div class="readmore"><a href="article.htm?pageid=${al.id}"></a></div>
				</div>
			</c:forEach>
		</c:if>
	</div>
</div>